/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.farent.solutions.plugins.stripes.hyperstripes.core;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 *
 * @author user
 */
public class DemoActionBean
{
    private String mode;
    
    private DemoPerson person;

    public DemoActionBean() {
        this.person  = new DemoPerson();
        person.setForename("Farouk");
        person.setSurname("Alhassan");
        person.setEmail("osbert252003@yahoo.com");

        DemoBook book = new DemoBook();
        book.setAuthor("farouk A");
        book.setPublishingDate(new Date() );
        List<DemoBook> books = new  ArrayList<DemoBook>();
        books.add(book);
        person.setBooks(books);
        mode = "edit";
    }

    public DemoPerson getPerson() {
        return person;
    }

    public void setPerson(DemoPerson person) {
        this.person = person;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }
    
}
